#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/types.h>
#include<ctype.h>
#define Max 30
#define Max1 10

int main(int argc , char * argv[], char *env[]){
 int x,i, q[Max1],s; 
 float w;
 char y, *string[Max],*var,*value; 
  printf("Enter the following values:");
         printf(" Enter an Integer:\n");
	scanf("%d",&x);
	if (x)
  	     printf("Integer is: %d\n",x);
	     
         printf("Enter a float:\n");
	 scanf(" %f",&w);
	 printf("Float is: %f\n",w);
	 
	printf("Enter not more than 10 Integers:\n");
	      for(i=0; i<10; i++){
        	  scanf("%d",&(q[i]));
	          printf("Array of integer is :%d \n",q[i]);
	}
printf("Enter Character:\n");
  for(i=0; i<30; i++){
	scanf("%c",&(string[i]));
	printf("%c\n",string[i]);
  }
  for(i=0; i<argc; i++)
      printf("Arg. [1]:  %s\n",argv[0]);
      printf("Arg. [2]: %s\n",argv[1]);
      printf("Arg. [3]: %s\n",argv[2]);
     
  for (i=0; i<argc; i++){
    if (isdigit(argv[i][0]))
        s= atoi(argv[i]);
    else printf("No Integers\n");
 }
        printf("The integer is : %d \n",s);

  for(i=0;i<argc; i++)	
	var=env[i];
      value=getenv(var);
      if(value)
	      printf("Variable %s has a value %s \n",var,value);
      else
	      printf("Variable %s hasn't a value\n",var);
	
     exit (0);	

}
